﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<ObjectModel.Document>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript">
    	selectMenu('User');
    </script>	
    <table cellpadding="1" cellspacing="1" border="1" class="listTable">
        <tr class="listHeader">
            <th>
                Ações
            </th>
            <th>
                Name
            </th>
            <th>
                Description
            </th>
            <th>
                Path
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td class="action">
                <%: Html.ActionLink("Edit", "Edit", new {  id=item.Id  }) %> |
                <%: Html.ActionLink("Delete", "Delete", new { id = item.Id })%>
            </td>
            <td>
                <%: item.Name %>
            </td>
            <td>
                <%: item.Description %>
            </td>
            <td>
                <%: item.Path %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="HeaderContent" runat="server">
</asp:Content>

